package com.gaoshu.service.serviceimpl;

import com.gaoshu.bean.Skull;
import com.gaoshu.mapper.SkullMapper;
import com.gaoshu.service.SkullService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SkullServiceImpl implements SkullService {

    @Autowired
    private SkullMapper skullMapper;

    //动态查询经办人信息
    public List<Skull> selectSkull(String skullname){
        return skullMapper.selectSkull(skullname);
    }

    //新增经办人
    @Override
    public int addSkull(Skull skull) {
        return skullMapper.addSkull(skull);
    }

    //删除经办人
    @Override
    public int deleteSkull(Integer skullid) {
        return skullMapper.deleteSkull(skullid);
    }

    //修改经办人信息
    @Override
    public int updateSkull(Skull skull) {
        return skullMapper.updateSkull(skull);
    }
}
